﻿<div class="search-page">
    <h2>共有{{paginationConf.totalItems}}条部门超时公文</h2>
    <div class="search">
        <div class="search-condition">
            <div class="form-inline">
                <div class="form-group">
                    <label for="lwwh">来文文号：</label>
                    <input type="text" class="form-control form-control-sm middle" id="lwwh" ng-model="pageSearch.DocumentNumber" ng-keyup="enterEvent($event)">
                </div>
                <div class="form-group">
                    <label for="title">公文标题：</label>
                    <input type="text" class="form-control form-control-sm middle" id="title" ng-model="pageSearch.QueryCondition" ng-keyup="enterEvent($event)">
                </div>
            </div>
            <div class="search-action">
                <button type="submit" class="btn btn-default btn-sm btn-search" ng-click="onReset()">重置</button>
                <button type="submit" class="btn btn-info btn-sm btn-search" ng-click="onDeptSearch()">查询</button>
            </div>
        </div>
    </div>
    <table class="table">
        <thead>
            <tr>
                <th>序号</th>
                <th>来文文号</th>
                <th>公文标题</th>
                <th>指派人员</th>
                <th>指派时间</th>
                <th>超时时长(小时)</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-if="activeTableData.length > 0" ng-repeat="row in activeTableData">
                <td>{{($index+1)+(pageSearch.PageNumber-1)*pageSearch.PageSize}}</td>
                <td>{{row.DocumentNumber || '----'}}</td>
                <td title="{{row.DocumentTitle}}" class="item-lg"><a href="/Apps/Workflow/Running/Open?mid={{row.MessageId}}" target="_blank">{{row.DocumentTitle || '----'}}</a></td>
                <td><p ng-repeat="item in row.Users.split(',') track by $index">{{item}}</p></td>
                <td><p ng-repeat="item in row.CreateTime.split(',') track by $index">{{item}}</p></td>
                <td><p ng-repeat="item in row.DelayTime.split(',') track by $index">{{item}}</p></td>
            </tr>
            <tr ng-if="!activeTableData.length">
                <td colspan="{{titleObj.length}}">无数据</td>
            </tr>
        </tbody>
    </table>
    <tm-pagination conf="paginationConf"></tm-pagination>
</div>
<div id="dlg-date-selector2" class="div-dlg">
    从：<input type="text" id="date-from2" class="date-value" /><br />
    <br />
    至：<input type="text" id="date-to2" class="date-value" />
</div>
